import pymongo
from umongo.frameworks import PyMongoInstance
from umongo import Document, fields

db = pymongo.MongoClient("localhost", 27017).app
instance = PyMongoInstance(db)